Skip to content

tesla: regenerate plugin for SDKs with a separate OAuth auth server - #121

Merged
hasaanhameed merged 2 commits into
mainfrom
tesla-auth-server-fix
Nov 12, 2026
Merged

hasaanhameed merged 2 commits into
mainfrom
tesla-auth-server-fix

Conversation

@hasaanhameed

Copy link
Copy Markdown
Contributor

Why

An agent using the Tesla plugin had to step outside the SDK to call Tesla's OAuth token endpoint. The spec listed https://auth.tesla.com/oauth2/v3 as a second top-level server, so the importer bound the OAuth token/authorize URLs to an alternative environment of the Fleet API server. By default the SDK sent token requests to https://fleet-api.prd.na.vn.cloud.tesla.com/token, which does not exist; switching environments broke every API call.

What changed

  • The Tesla spec now lists only the Fleet API server. The OAuth URLs keep their absolute auth.tesla.com address, so the generator emits a separate authServer.
  • Tesla SDKs regenerated and pushed: tesla-typescript-sdk@6f1f166, tesla-python-sdk@17d2ef8, tesla-csharp-sdk@9e7ee3c. ServerEnvironment is gone (breaking).
  • This PR regenerates the plugin with apimatic plugin generate against those SDKs, so the skills describe authServer instead of Environment2. Version 0.3.1 → 0.4.0.
  • The newer generator also adds a planner agent (scoped/agents/), a Codex manifest and a typescript-event-streams skill. The integrate skills depend on the planner. Note CLAUDE.md still says the repo has no agents.

Verification

  • Localhost mock test on the pushed TS SDK: token and authorize go to auth.tesla.com, API calls to fleet-api.
  • Headless agent run with this plugin on a login + refresh + partner registration + list vehicles task: completed through the SDK only, no hand-written HTTP, no blockers, 20 tests passing (Tesla stubbed).
  • Not tested against Tesla prod. Open risk: Tesla's partner token may require audience, which the SDK cannot send (x-oauth2-token-params is not supported by the importer/generators).

🤖 Generated with Claude Code

hasaanhameed and others added 2 commits November 12, 2026 17:46
The Tesla SDKs (TypeScript, Python, C#) were regenerated from a spec that
no longer lists auth.tesla.com as a second top-level server. OAuth token
and authorize requests now go to a dedicated authServer
(https://auth.tesla.com/oauth2/v3) instead of the Fleet API host, and the
ServerEnvironment selector is gone. The skills are regenerated against
those SDKs so their facts match.

Generated with `apimatic plugin generate`; the newer generator also adds
a planner agent, a Codex manifest and a typescript-event-streams skill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hasaanhameed
hasaanhameed merged commit 9932812 into main Nov 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant